/*
 * Copyright (C) 2025 Tsingteng MicroSystem
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
#ifndef _NFC_OSI_DEBUG_API_H_
#define _NFC_OSI_DEBUG_API_H_

#include <stdarg.h>
#include "nfc_types.h"
#include "nfc_config_api.h"

/**
 * @file nfc_debug_api.h
 * @brief OS相关debug API定义
*/

/**
 * @brief dump异常内存块的信息
 *
*/
void osi_memory_dump();

/**
 * @brief 获取当前内存泄漏信息
 *
 * @return 返回内存当前泄漏大小，无泄漏则为0
*/
size_t osi_get_memory_leak_info();

#ifndef NCI_CONFIG_MANAGER_DISABLE
/**
 * @brief 获取NFC配置对象
 *
 * @param[out] result 校验和指针，用于返回配置解析失败项的个数和行号
 *
 * @return 返回指向NFC配置对象的指针，如果获取失败则返回NULL
 */
const tNFC_CF *nfc_config_get_debug(uint32_t *result);
#endif
void nfa_wiredse_set_max_rapdu_wait_time_debug(uint32_t timeout_ms);
#endif /* _NFC_OSI_DEBUG_API_H_ */
